home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / adainc / s-tasmem.ads < prev    next >
Text File  |  1996-01-30  |  3KB  |  47 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                 GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS               --
  4. --                                                                          --
  5. --                    S Y S T E M . T A S K _ M E M O R Y                   --
  6. --                                                                          --
  7. --                                  S p e c                                 --
  8. --                                                                          --
  9. --                             $Revision: 1.7 $                             --
  10. --                                                                          --
  11. --       Copyright (c) 1991,1992,1993,1994, FSU, All Rights Reserved        --
  12. --                                                                          --
  13. -- GNARL is free software; you can redistribute it  and/or modify it  under --
  14. -- terms  of  the  GNU  Library General Public License  as published by the --
  15. -- Free Software  Foundation;  either version 2, or (at  your  option)  any --
  16. -- later  version.  GNARL is distributed  in the hope that  it will be use- --
  17. -- ful, but but WITHOUT ANY WARRANTY;  without even the implied warranty of --
  18. -- MERCHANTABILITY  or  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Gen- --
  19. -- eral Library Public License  for more details.  You should have received --
  20. -- a  copy of the GNU Library General Public License along with GNARL;  see --
  21. -- file COPYING.LIB.  If not,  write to the  Free Software Foundation,  675 --
  22. -- Mass Ave, Cambridge, MA 02139, USA.                                      --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26. with System.Storage_Elements;
  27. --  Used for, Storage_Count
  28.  
  29. package System.Task_Memory is
  30.  
  31.    procedure Low_Level_Free (A : System.Address);
  32.    --  Free a previously allocated block, guaranteed to be tasking safe
  33.  
  34.    function Low_Level_New
  35.      (Size : Storage_Elements.Storage_Count)
  36.       return System.Address;
  37.    --  Allocate a block, guaranteed to be tasking safe. The block always has
  38.    --  the maximum possible required alignment for any possible data type.
  39.  
  40.    function Unsafe_Low_Level_New
  41.      (Size : Storage_Elements.Storage_Count)
  42.       return System.Address;
  43.    --  Allocate a block, not guaranteed to be tasking safe. The block always
  44.    --  has the maximum possible required alignment for any possible data type.
  45.  
  46. end System.Task_Memory;
  47.